package com.example.project.mapper;

import com.example.project.dto.OrderItem;
import com.example.project.entity.Order;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

@Mapper
public interface OrderMapper {
    void insertOrder(Order order);

    void insertOrderItem(OrderItem orderItem);

    void updateOrderStatus(String orderId, String status, Date payTime);

    List<OrderItem> getOrderList(Integer userId);
}
